package com.blackhorse.xml.dao;

import com.blackhorse.domain.QueryVo;
import com.blackhorse.domain.User;

import java.util.List;

//该Dao接口仅用于手动写实现类的情况，使用mybatis代理dao对象用的是UserMapper接口
public interface UserDao {
    public List<User> findAll();

    public void saveUser(User user);

    public void updateUser(User user);

    public void deleteUserById(int id);

    public User findById(int id);

    public List<User> findByName(String name);

    public int findTotal();
}
